<!DOCTYPE html>


<!doctype html>
<html style="height:100%;">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,minimal-ui"/>
    <link href="http://www.qlcoder.com/uploads/145620041535888.png" type="image/x-icon" rel=icon>
    <title>码之初</title>

    <!--
        <link rel="stylesheet" href="/css/edit/style.css">
        <link rel="stylesheet" href="/css/edit/editormd.css">
        <link rel="stylesheet" href="/css/highlight/styles/github.css">
    -->
    <link href="http://www.qlcoder.com/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://www.qlcoder.com/css/bootstrap-theme.css" rel="stylesheet">
    <link href="http://www.qlcoder.com/css/jquery.mCustomScrollbar.css" rel="stylesheet">
    <link href="http://www.qlcoder.com/css/base.css" rel="stylesheet">
    <link rel="stylesheet" href="http://www.qlcoder.com/font/iconfont.css">


    <link rel="stylesheet" href="http://www.qlcoder.com/css/task.css">
    <link rel="stylesheet" href="http://www.qlcoder.com/css/edit/editormd.css">
    <link rel="stylesheet" href="http://www.qlcoder.com/css/count_down.css">
    <link rel="stylesheet" href="http://www.qlcoder.com/css/login.css">
    <link href="http://www.qlcoder.com/css/simplePagination.css" rel="stylesheet">
    <link rel="stylesheet" href="http://www.qlcoder.com/css/codemirror.css">
    <link rel="stylesheet" href="http://www.qlcoder.com/js/display/fullscreen.css">
    <style>
        .dark-theme .ellipse {
            background: #555;
            background: -moz-linear-gradient(top, #555 0%, #333 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #555), color-stop(100%, #333));
            background: -webkit-linear-gradient(top, #555 0%, #333 100%);
            background: -o-linear-gradient(top, #555 0%, #333 100%);
            background: -ms-linear-gradient(top, #555 0%, #333 100%);
            background: linear-gradient(top, #555 0%, #333 100%);
        }

        /*2016-06-18 @diego*/
        .codeMirrorTool {
            padding: 5px;
            background: #f6f6f6;
            border: 1px solid #bbb;
            border-bottom: none;
            overflow: hidden;
        }

        .codeMirrorTool .fullScreen, .codeLanguage {
            float: right;
        }

        .fullScreen {
            margin-left: 10px;
        }

        .rank .row {
            /*	border-bottom: 1px solid #ddd;*/
        }

        .rank .row:nth-child(odd) {
            background: #f5f5f5;
        }

        .rank .row div {
            padding-top: 5px;
            padding-bottom: 5px;
        }

        a.tag {
            font-size: 12px;
            border: 1px solid #ddd;
            padding: 1px 6px;
            border-radius: 5px;
            margin-left: 10px;
            color: green;
            background-color: rgba(1, 126, 102, .08);
        }

        .who a.manager {
            display: inline-block;
            outline: none;
            margin:5px 5px 0 0 ;
        }

        .who a img {
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
        }
    </style>

    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?420590b976ac0a82d0b82a80985a3b8a";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body class="html-margin">
<div class="q_warp" style="min-height:100%;margin-bottom:-60px;">
    <nav class="nav">
        <!--<div style="width:8.33%;height: 50px;float: left;"></div>-->
        <div class="container-fluid"><!--fluid-->
            <div class="pull-left">
                <a class="" href="/home" style="display: inline-block;"><img src="/img/ql_logo1.png"> </a>
            </div>
            <div class="pull-left nav-list">
                <ul class="" style="padding:0;">
                    <li class=""><a href="/home"><span color="gray"
                                                       style="font-size:15px;">技能树</span>
                    </a></li>
                    <li class=""><a
                            href="/contests/detail"><span color="gray" style="font-size:15px;">赛码会</span></a></li>

                    <li class=""><a href="/topic/index"><span color="gray"
                                                              style="font-size:15px;">话题<i
                            class="new">new</i></span></a>
                    </li>

                    <!-- <li class=""><a href="/article/all"><span color="gray"
                                                                                                             style="font-size:15px;">文章</span></a>
                     </li>-->
                    <li class=""><a href="/rank"><span color="gray"
                                                       style="font-size:15px;">排行榜</span></a>
                    </li>
                    <li class=""><a href="/help"><span color="gray"
                                                       style="font-size:15px;">帮助中心</span></a>
                    </li>
                    <!-- <li class=""><a href="/help#opinion"><span color="gray" style="font-size:15px;">意见反馈<span></span></span></a></li> -->
                </ul>
            </div>
            <div class="pull-right ">
                <ul class="login">
                    <li><a href="/auth/login"><span color="gray" style="font-size:15px;">登录</span></a>
                    <li><a href="/auth/register"><span color="gray" style="font-size:15px;">注册</span></a>
                </ul>
            </div>
        </div>

    </nav>


    <!-- Page Content -->
    <div class="contain">

        <input type="hidden" id="taskType" value="0"/>

        <div class="row">

            <!-- Blog Post Content Column -->
            <div class="col-lg-8" style="display: inline-block; width:60%;vertical-align:top;">

                <!-- Blog Post -->

                <!-- Title -->
                <h1>码之初


                    <small>
                        <small>1积分</small>
                    </small>
                </h1>
                <!-- Author -->

                <!--Date/Time 
                <hr>
                <p><span class="glyphicon glyphicon-time"></span> Posted on August 24, 2013 at 9:00 PM</p>
                <hr>
-->
                <!-- Preview Image -->

                <hr>
                <!-- Post Content -->
                <p class="lead">

                <p>你好，欢迎来到千里码，我们旨在提升每一位到来的coder的编程水平。在这里你可以了解到其他coder在各大公司会用到的各种实战技能，也可以通过查阅学习资料去掌握这些技能。</p>

                <p>作为一位coder，首先需要掌握一门编程语言以及数学常识。我们希望你现在已经掌握了一门编程语言的基本用法。</p>

                <p>第<strong>2333</strong>个能被<strong>2或者被3整除</strong>的正整数是多少?</p>

                <p>请把答案填入答题框内，如果有问题请点击右侧按钮查阅题目相关讨论区。</p>

                <p>被2或者被3整除的正整数依次是：<code>2,3,4,6,8,9,10,12,14,15,16,18…</code>。</p></p>

                <hr name="comment" id="comment">

                <!--  user is not login S -->
                <!--  user is not login E -->

                <!-- Blog Comments -->
                <div class="well clear">                <!-- Comments Form -->
                    <h4>答案:</h4>

                    <div class="form-group">
                        <input type="hidden" name="_token" value="9D8oquP9e5Qn4hmRbKBLkw5AWGJOCGk6lFuW0yPP">
                        <input type="hidden" name="phref" value="/firstsolve">

                        <textarea class="form-control" rows="1" name="answer"></textarea>
                    </div>
                    <button type="submit" class="btn btn-primary solve pull-right">提交</button>

                </div>

                <!-- code error -->
                <div id="codeError" style="display:none;border:1px solid #aaa;padding:10px;margin-top:20px;"></div>

                <!--         Comments -->
                <div id="dc" name="dc">
                </div>
                <br>


            </div>

            <!-- Blog Sidebar Widgets Column -->
            <div class="col-md-4" style="display: inline-block;width:39%;float:none;">
                <!-- Blog Search Well -->
                <div class="well">
                    <h4>
                        <img src="/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" class="img-circle"
                             alt="Cinque Terre" width="60" height="60">&nbsp&nbsp奥利奥
                    </h4>

                    <h5>
                        <i class="iconfont">&#xe608;</i>&nbsp&nbsp千里码 程序员鼓励师
                    </h5>
                    <!-- /.input-group -->
                    <h5>
                        <i class="iconfont">&#xe60d;</i>&nbsp&nbsp浙江省|杭州
                    </h5>
                    <!-- /.input-group -->
                </div>


                <!-- Side Widget Well -->
                <div class="well">
                    <h4>奥利奥说:</h4>

                    <p>

                    <p>程序的本质是逻辑与算法，算法的本质是数学。希望各位在IT界摸爬滚打的同时，练好内功心法。</p></p>
                </div>
                <div class="well">
                    <div class="follow">
                        <p>有 <strong class="num font15">24</strong>位 <strong class="tech font15">技术主管</strong>关注此任务,希望能与通过该任务的coder交流,并发送职位邀请.
                            <a href="">查看全部</a>
                        </p>

                        <div class="who">
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
                            <a class="manager" tabindex="0" href="javascript:alert('此操作需先通过爬虫-5');" role="button"
                               data-toggle="popover" data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" width="30" height="30" alt=""/>
                            </a>
							<a href="">... ...</a>


                        </div>
                    </div>
                </div>
                <div class="well">
                    <div class="follow">
                        <p>有 <strong class="num font15">24</strong>位 <strong class="tech font15">技术主管</strong>关注此任务,希望能与通过该任务的coder交流,并发送职位邀请.
                        </p>

                        <div class="who">
                            <a class="manager" tabindex="0" href="" role="button" data-html="true" data-toggle="popover"
                               data-placement="bottom"
                               data-trigger="hover" title="腾讯事业部 李凌" data-content="负责腾讯XXXXXXX">
                                <img src="http://www.qlcoder.com/system/App/User/avatars/000/000/055/thumb/neworeo.jpg"
                                     width="30" height="30" alt=""/>
                            </a>
                        </div>
                    </div>
                </div>
                <!-- Side Widget Well -->
                <a type="button" class="btn btn-primary btn-lg" href="/discuss/码之初" target="_blank">查看讨论区</a>
                <br>

                <div>
                    &nbsp
                </div>


            </div>

        </div>
        <!-- /.row -->

    </div>
    <div class="task-shadow none"></div>
    <img class="loadding_img none" src="/img/loadding.gif" alt="正在加载中"
         style="display: block;position: fixed;top: 50%;left: 50%;margin-top: -10px;margin-left: -50px;">

    <div class="authority none"
         style="width:550px;position:fixed;top:50%;left:50%;margin-top:-265px;margin-left:-275px;z-index: 2222222">
        <div class="authority-warp" style="position:relative">
            <a href="javascript:;" class="authority-close" style="position:absolute;top:6px;right:10px;">X</a>

            <div class="panel panel-login">
                <h2 style="margin-left: 30px;">千里码</h2>

                <p style="font-size: 18px;margin-left: 30px;">Code is cheap,show me the answer.</p>
                <!--<h2 style="margin-left: 30px;">千里码</h2>
  
            <p style="font-size: 18px;margin-left: 30px;">与开发者分享你的技术和实战经验</p>-->
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-6">
                            <a href="#" class="active" id="login-form-link">登录</a>
                        </div>
                        <div class="col-xs-6">
                            <a href="#" id="register-form-link" class="">注册</a>
                        </div>
                    </div>
                    <hr>
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-12">
                            <form id="login-form" action="/auth/login" method="post" role="form"
                                  style="display: block;">
                                <input type="hidden" name="_token" value="9D8oquP9e5Qn4hmRbKBLkw5AWGJOCGk6lFuW0yPP">

                                <div class="form-group">
                                    <input type="text" name="email" id="email" tabindex="1" class="form-control"
                                           placeholder="邮箱" value="">
                                </div>
                                <div class="form-group">
                                    <input type="password" name="password" id="password" tabindex="2"
                                           class="form-control" placeholder="密码">
                                </div>
                                <div class="form-group text-center">
                                    <input type="checkbox" tabindex="3" class="" name="remember" id="remember">
                                    <label for="remember"> 记住我</label>
                                </div>
                                <div class="form-group">
                                    <div class="row">
                                        <div class="col-sm-6 col-sm-offset-3">
                                            <input type="submit" name="login-submit" id="login-submit" tabindex="4"
                                                   class="form-control btn btn-login" value="登录">
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="row">
                                        <div class="col-lg-12">
                                            <div class="text-center">
                                                <a href="/password/email" tabindex="5" class="forgot-password">忘记密码?</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                            <form id="register-form" action="/auth/register" method="post" role="form"
                                  style="display: none;">

                                <input type="hidden" name="_token" value="9D8oquP9e5Qn4hmRbKBLkw5AWGJOCGk6lFuW0yPP">

                                <div class="form-group">
                                    <input type="hidden" name="utm" id="utm" value="unknown">
                                </div>
                                <div class="form-group">
                                    <input type="text" name="name" id="name" tabindex="1" class="form-control"
                                           placeholder="用户名" value="">
                                </div>
                                <div class="form-group">
                                    <input type="email" name="email" id="email" tabindex="1" class="form-control"
                                           placeholder="邮箱" value="">
                                </div>
                                <div class="form-group">
                                    <input type="password" name="password" id="password" tabindex="2"
                                           class="form-control" placeholder="密码">
                                </div>
                                <div class="form-group">
                                    <input type="password" name="password_confirmation" id="password_confirmation"
                                           tabindex="2" class="form-control" placeholder="再次输入密码">
                                </div>
                                <div class="form-group">
                                    <div class="row">
                                        <div class="col-sm-6 col-sm-offset-3">
                                            <input type="submit" tabindex="4" class="form-control btn btn-register"
                                                   value="提交">
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="result-alert none">
        <div class="result_warp">
            <div class="warning">
                <i class="iconfont">&#xe616;</i><!-- true:&#xe617;   flase:&#xe616;  -->
            </div>
            <p>我是一条安安静静摸鱼的咸鱼~</p>

            <div class="query"><a class="btn btn-primary result-close">确定</a></div>
        </div>

    </div>
    <!-- /.container -->

    <!-- jQuery -->

    <!-- Bootstrap Core JavaScript -->
    <!--
            <hr>

            <footer>
                <div class="row">
                    <div class="col-lg-12">
                        <p>©2015 qlcoder.com | 联系我们:
                        oreo@qlcoder.com qq群480394714</p>
                    </div>
                </div>
            </footer>
    -->
    <div style="height:60px;"></div>
</div>
<!-- Footer -->
<footer>
    <p>©2016 千里码 浙ICP备15038807号-1 联系我们:oreo@qlcoder.com
    </p>
</footer>
</body>
<script src="http://www.qlcoder.com/js/jquery.min.js"></script>
<script src="http://www.qlcoder.com/js/bootstrap.min.js"></script>
<script src="http://www.qlcoder.com/js/base.js"></script>
<script src="http://www.qlcoder.com/js/editormd.js?v=1.0"></script>
<script src="http://www.qlcoder.com/js/login.js"></script>
<script src="http://www.qlcoder.com/js/codemirror.js"></script>
<script src="http://www.qlcoder.com/js/mode/python/python.js"></script>
<script src="http://www.qlcoder.com/js/mode/clike/clike.js"></script>
<script src="http://www.qlcoder.com/js/display/fullscreen.js"></script>
<script type="text/javascript">
    $(".who a").popover();
    var testEditor;
    //is pass?
    var _flag = false;
    $(function () {
        $("#fenye").pagination({
            prevText: "上一页",
            nextText: "下一页",
            ulClass: "in clearfix",
            items: 0,//--总个数
            itemsOnPage: 20,//--个数
            currentPage: 1,//-当前
            //hrefTextSuffix:"javascript:;",
            hrefText: "",
            onPageClick: function (pageNumber, event) {
                console.log(pageNumber);
                $(".well .row").removeAttr("style");
                $(".well .row").slice(0, (pageNumber - 1) * 20).css({"height": "0", "overflow": "hidden"});
            }
        });
        $("button.solve").click(function () {
            var val = $("textarea.form-control").val() || localStorage.getItem("codeMirror");
            var token = $("input[name='_token']").val();
            var _href = $("input[name='phref']").val();
            var lan = "" || $(".codeLanguage").val();
            $(".task-shadow").toggleClass("none");
            $(".loadding_img").removeClass("none");
            $.ajax({
                url: _href,
                timeout: 30000,
                type: "post",
                data: {answer: val, _token: token, lan: lan},
                dataType: "json",
                success: function (data) {
                    if (data.success == true) {
                        $(".result_warp").removeClass("none");
                        $(".result-alert").toggleClass("none").find(".warning").find("i").html("&#xe617;").css("color", "#2aa515");
                        $(".result-alert p").html(data.result);
                        _flag = true;
                    }
                    else {
                        /* $(".result_warp").removeClass("none");
                         $(".result-alert").toggleClass("none").find(".warning").find("i").html("&#xe616;");
                         $(".result-alert p").html(data.result);*/
                        if ($("#taskType").val() == 1) {//区分代码题还是普通题，代码题错误的话不弹框
                            $("#codeError").show().html(data.result);
                            $(".task-shadow,.result-alert,.loadding_img").addClass('none');
                            window.location.hash = "codeError";
                        } else {
                            $(".result_warp").removeClass("none");
                            $(".result-alert").toggleClass("none").find(".warning").find("i").html("&#xe616;");
                            $(".result-alert p").html(data.result);
                        }
                    }
                },
                complete: function (XMLHttpRequest, status) {
                    if (status == 'timeout') {
                        $(".result_warp").removeClass("none");
                        $(".result-alert").toggleClass("none").find(".warning").find("i").html("&#xe616;");
                        $(".result-alert p").html("请求超时，请重新尝试！");
                    }
                }
            })

        });
        $(".commentLogin").click(function () {
            $(".authority,.task-shadow").removeClass("none");
        })
        $(".result-close").click(function () {
            if (_flag) {
                window.location.reload();
            }
            else {
                $(".task-shadow").addClass("none");
                $(".result-alert").addClass("none");
                $(".loadding_img").addClass("none");
            }
        })
        $(".authority-close").click(function () {
            $(".authority,.task-shadow").addClass("none");
        });
    });
    function codeMirrorEditor(mode) {
        var myTextarea = document.getElementById('editor');
        var CodeMirrorEditor = CodeMirror.fromTextArea(myTextarea, {
            mode: mode || "text/x-python",
            lineNumbers: true,
//            value: localStorage.getItem("codeMirror") || "",
            extraKeys: {
                "F11": function (cm) {
                    cm.setOption("fullScreen", !cm.getOption("fullScreen"));
                },
                "Esc": function (cm) {
                    if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
                }
            }
        });
        $(".fullScreen").click(function () {
            CodeMirrorEditor.setOption("fullScreen", !CodeMirrorEditor.getOption("fullScreen"));
            if (CodeMirrorEditor.getOption("fullScreen")) {
                $(this).css({"position": "fixed", "top": "5px", "right": "5px", "z-index": "11"}).html("取消全屏");
            } else {
                $(this).removeAttr("style").html("全屏");
            }
        });
        localStorage.setItem("codeMirror", $("#editor").val());
        //load code
        /*if(localStorage.getItem('codeMirror')){
         CodeMirrorEditor.setOption("value",localStorage.getItem("codeMirror") || "");
         }*/
        //save code
        CodeMirrorEditor.on("change", function () {
            localStorage.setItem("codeMirror", CodeMirrorEditor.getValue());
            console.log(localStorage.getItem("codeMirror"));
        })
    }
</script>
<script src="/js/jquery.simplePagination.js"></script>
<!--<script>
    if (document.getElementsByClassName("contain")[0] != null)
        document.getElementsByClassName("contain")[0].style.minHeight = window.innerHeight - 152 + "px";
</script>-->
</html>


